package com.flyme.module.base.provider.service.impl;

import com.flyme.core.base.supper.service.impl.BaseServiceImpl;
import com.flyme.module.base.client.entity.SysArea;
import com.flyme.module.base.provider.mapper.SysAreaMapper;
import com.flyme.module.base.provider.service.SysAreaService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SysAreaServiceImpl extends BaseServiceImpl<SysAreaMapper, SysArea> implements SysAreaService {

    /**
     * 查询省
     */
    public List<Map<String, Object>> selectOne(){
        List<Map<String, Object>> list = listMaps(q().select("areaId,areaName").eq("areaLevel", 1).orderByAsc("firstLetter"));
        return list;
    }
}
